package com.lbd.system.bean;

import com.lbd.base.bean.AbstractEntity;
import lombok.*;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Lob;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@DynamicUpdate
@Entity
public class Constant extends AbstractEntity {
    //编码
    private String code;
    //标签
    private String label;
    //内容
    @Lob
    private String content;
    //备注
    @Lob
    private String remark;

    public Constant(String id, String code, String label) {
        this.id = id;
        this.code = code;
        this.label = label;
    }
}
